//
//  ViewController.m
//  手动切换demo
//
//  Created by zhongchuren on 2018/9/20.
//  Copyright © 2018年 sundusk. All rights reserved.
//

#import "ViewController.h"
#import "oneViewController.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton *button = [[UIButton alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
    [button setTitle:@"点击测试" forState:UIControlStateNormal];
    [button setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(addAction) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    
    
    UILabel *one = [[UILabel alloc]initWithFrame:CGRectMake(100, 200, 300, 100)];
    [self.view addSubview:one];
    one.text = @"这个是多语言版本";
}

- (void)addAction{
    
    oneViewController *vc = [[oneViewController alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
    
}
@end
